/*
 * TermOccurrence.cpp
 *
 *  Created on: Nov 26, 2012
 *      Author: m
 */

#include "TermOccurrence.h"

namespace physical
{

TermOccurrence::TermOccurrence() :
        m_termId( 0 ), m_phraseId( 0 )
{
}

TermOccurrence::TermOccurrence( unsigned short termId,
        unsigned short phraseId ) :
        m_termId( termId ), m_phraseId( phraseId )
{
}

TermOccurrence::TermOccurrence( const TermOccurrence& other )
{
    *this = other;
}

TermOccurrence::~TermOccurrence()
{
}

unsigned short TermOccurrence::getPhraseId() const
{
    return m_phraseId;
}

void TermOccurrence::setPhraseId( unsigned short phraseId )
{
    m_phraseId = phraseId;
}

unsigned short TermOccurrence::getTermId() const
{
    return m_termId;
}

void TermOccurrence::setTermId( unsigned short termId )
{
    m_termId = termId;
}

TermOccurrence& TermOccurrence::operator =( const TermOccurrence& rhs )
{
    m_termId = rhs.m_termId;
    m_phraseId = rhs.m_phraseId;
    return *this;
}

bool TermOccurrence::operator ==( const TermOccurrence& other ) const
{
    return m_termId == other.m_termId && m_phraseId == other.m_phraseId;
}

bool TermOccurrence::operator !=( const TermOccurrence& other ) const
{
    return !( *this == other );
}

} /* namespace physical */
